package top.linuyx.pojo.param;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

/**
 * @Author Linuyx
 * @Description 简单邮件请求体
 * @Date Created in 2021-04-25 20:53
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class VerificationCodeSimpleMailParam {

    /**
     * 接收者邮箱
     */
    @NotBlank(message = "接收者邮箱不能为空")
    @Email(message = "接受者邮箱格式不合法")
    @Size(max = 32, message = "邮箱长度不能超过32位")
    private String receiveEmail;

    /**
     * 邮件主题
     */
    private String subject;

    /**
     * 邮件内容
     */
    private String text;

}
